
package com.google.code.sms.android.util;

/**
 * @author Sindre Mehus
 * @version $Id: Constants.java 3480 2013-05-29 11:26:53Z sindre_mehus $
 */
public final class Constants {

    // Character encoding used throughout.
    public static final String UTF_8 = "UTF-8";

    // REST protocol version and client ID.
    // Note: Keep it as low as possible to maintain compatibility with older servers.
    public static final String REST_PROTOCOL_VERSION = "1.2.0";
    public static final String REST_CLIENT_ID = "android";

    // Names for intent extras.
    public static final String INTENT_EXTRA_NAME_ID = "sms.id";
    public static final String INTENT_EXTRA_NAME_NAME = "sms.name";
    public static final String INTENT_EXTRA_NAME_PARENT_ID = "sms.parent.id";
    public static final String INTENT_EXTRA_NAME_PARENT_NAME = "sms.parent.name";
    public static final String INTENT_EXTRA_NAME_ARTIST = "sms.artist";
    public static final String INTENT_EXTRA_NAME_TITLE = "sms.title";
    public static final String INTENT_EXTRA_NAME_AUTOPLAY = "sms.playall";
    public static final String INTENT_EXTRA_NAME_ERROR = "sms.error";
    public static final String INTENT_EXTRA_NAME_QUERY = "sms.query";
    public static final String INTENT_EXTRA_NAME_PLAYLIST_ID = "sms.playlist.id";
    public static final String INTENT_EXTRA_NAME_PLAYLIST_NAME = "sms.playlist.name";
    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_TYPE = "sms.albumlisttype";
    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_SIZE = "sms.albumlistsize";
    public static final String INTENT_EXTRA_NAME_ALBUM_LIST_OFFSET = "sms.albumlistoffset";
    public static final String INTENT_EXTRA_NAME_SHUFFLE = "sms.shuffle";
    public static final String INTENT_EXTRA_NAME_REFRESH = "sms.refresh";
    public static final String INTENT_EXTRA_NAME_EXIT = "sms.exit" ;
    public static final String INTENT_EXTRA_NAME_HIDE_NOTIFICATION = "sms.hidenotification";

    // Notification IDs.
    public static final int NOTIFICATION_ID_PLAYING = 100;
    public static final int NOTIFICATION_ID_ERROR = 101;

    // Preferences keys.
    public static final String PREFERENCES_KEY_SERVER_INSTANCE = "serverInstanceId";
    public static final String PREFERENCES_KEY_SERVER_NAME = "serverName";
    public static final String PREFERENCES_KEY_SERVER_URL = "serverUrl";
    public static final String PREFERENCES_KEY_MEDIA_FOLDER_ID = "mediaFolderId";
    public static final String PREFERENCES_KEY_USERNAME = "username";
    public static final String PREFERENCES_KEY_PASSWORD = "password";
    public static final String PREFERENCES_KEY_VIDEO_PLAYER = "videoPlayer";
    public static final String PREFERENCES_KEY_AUDIO_QUALITY_WIFI = "audioQualityWifi";
    public static final String PREFERENCES_KEY_AUDIO_QUALITY_MOBILE = "audioQualityMobile";
    public static final String PREFERENCES_KEY_CACHE_SIZE = "cacheSize";
    public static final String PREFERENCES_KEY_CACHE_LOCATION = "cacheLocation";
    public static final String PREFERENCES_KEY_PRELOAD_COUNT = "preloadCount";
    public static final String PREFERENCES_KEY_MEDIA_BUTTONS = "mediaButtons";
    public static final String PREFERENCES_KEY_SCREEN_LIT_ON_DOWNLOAD = "screenLitOnDownload";
    public static final String PREFERENCES_KEY_REPEAT_MODE = "repeatMode";
    public static final String PREFERENCES_KEY_WIFI_REQUIRED_FOR_DOWNLOAD = "wifiRequiredForDownload";
    public static final String PREFERENCES_KEY_OFFLINE = "offline";
    public static final String PREFERENCES_KEY_HIDE_NOTIFICATION_BY_USER = "hideNotificationByUser";

    // Name of the preferences file.
    public static final String PREFERENCES_FILE_NAME = "com.google.code.sms.android_preferences";

    public static final String ALBUM_ART_FILE = "folder.jpeg";

    private Constants() {
    }
}
